//
ws = WScript.CreateObject("WScript.Shell");
fso = new ActiveXObject("Scripting.FileSystemObject");

//
fisiere = ["Window.vcxproj.user", "Window.vcxproj.filters", "Window.sdf", "Window.v11.suo", "Resource.aps"];

//
try {
   for (fi in fisiere) {
      if (fso.FileExists(ws.CurrentDirectory + "\\" + fisiere[fi]))
         fso.DeleteFile(ws.CurrentDirectory + "\\" + fisiere[fi], 1);
   }
}
catch (err) { ws.popup(err + " : " + fisiere[fi], 5, " curatenie.js", 16); }

//
foldere = ["ipch", "Debug", "Release", "x64"];
for (fo in foldere) {
   if (fso.FolderExists(ws.CurrentDirectory + "\\" + foldere[fo]))
      fso.DeleteFolder(ws.CurrentDirectory + "\\" + foldere[fo], 1);
}
